package com.ctsi.system.enums;

import com.ctsi.core.common.annotation.ExceptionEnum;
import com.ctsi.core.common.constant.MarsExceptionConstant;
import com.ctsi.core.common.enums.BaseExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:40
 */
@Getter
@AllArgsConstructor
@ExceptionEnum(module = MarsExceptionConstant.MARS_SYSTEM_MODULE, kind = MarsExceptionConstant.MARS_SYSTEM_USER_ENUM)
public enum UserExceptionEnum implements BaseExceptionEnum {

    /**
     * 用户相关枚举对象
     */
    USER_NOT_EXIST(1, "用户不存在"),
    USER_CAN_NOT_DELETE_ADMIN(2, "不能删除超级管理员"),
    USER_CAN_NOT_UPDATE_ADMIN(3, "不能修改超级管理员状态"),
    USER_ROLE_NOT_SETTING(4, "用户未配置角色信息");

    private final Integer code;

    private final String message;

}
